import request from '@/utils/request'
//笔记管理接口
export function sysCourseNotesQuery(data) {
  return request({
    method: 'get',
    url: '/sysCourseNotes/query',
    params: data,
  })
}

export function sysCourseNotesQueryById(id) {
  return request({
    method: 'get',
    url: '/sysCourseNotes/query/' + id,
  })
}

export function sysCourseNotesAdd(data) {
  return request({
    method: 'post',
    url: '/sysCourseNotes/add',
    data,
  })
}

export function sysCourseNotesDelete(id) {
  return request({
    method: 'get',
    url: '/sysCourseNotes/delete/' + id,
  })
}

export function sysCourseNotesUpdate(data) {
  return request({
    method: 'post',
    url: '/sysCourseNotes/update',
    data,
  })
}

export function sysCourseNotesOpenApiQuery(data) {
  return request({
    method: 'get',
    url: '/sysCourseNotes/openApi/query',
    params: data,
  })
}
//引用笔记
export function sysCourseNotesClickQuote(id) {
  return request({
    method: 'get',
    url: '/sysCourseNotes/clickQuote/' + id,
  })
}
//取消引用笔记
export function sysCourseNotesClickUnQuote(id) {
  return request({
    method: 'get',
    url: '/sysCourseNotes/clickUnQuote/' + id,
  })
}
//点赞笔记
export function sysCourseNotesClickLike(id) {
  return request({
    method: 'get',
    url: '/sysCourseNotes/clickLike/' + id,
  })
}
//取消点赞笔记
export function sysCourseNotesClickUnLike(id) {
  return request({
    method: 'get',
    url: '/sysCourseNotes/clickUnLike/' + id,
  })
}
